package Domain;

import java.util.Date;

//商品评论
public class Comment {
    private int id;
    private String username;//用户名
    private String name;//商品名
    private String newmsg;//评论内容
    private String picture;//评论图片
    private String remsg;//回复内容
    private Date newtime;//评论时间
    private Date retime;//回复时间
    private String ckstatus;//审核状态
    private int productid;//评论所在的商品的id
    private int userid;//发布评论的用户id

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getProductid() {
        return productid;
    }

    public void setProductid(int productid) {
        this.productid = productid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNewmsg() {
        return newmsg;
    }

    public void setNewmsg(String newmsg) {
        this.newmsg = newmsg;
    }

    public String getRemsg() {
        return remsg;
    }

    public void setRemsg(String remsg) {
        this.remsg = remsg;
    }

    public Date getNewtime() {
        return newtime;
    }

    public void setNewtime(Date newtime) {
        this.newtime = newtime;
    }

    public Date getRetime() {
        return retime;
    }

    public void setRetime(Date retime) {
        this.retime = retime;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getCkstatus() {
        return ckstatus;
    }

    public void setCkstatus(String ckstatus) {
        this.ckstatus = ckstatus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", newmsg='" + newmsg + '\'' +
                ", picture='" + picture + '\'' +
                ", remsg='" + remsg + '\'' +
                ", newtime=" + newtime +
                ", retime=" + retime +
                ", ckstatus='" + ckstatus + '\'' +
                ", productid=" + productid +
                ", userid=" + userid +
                '}';
    }
}
